package com.example.kugou.service.serviceimpl;

import com.example.kugou.mapper.VipMapper;
import com.example.kugou.pojo.Vip;
import com.example.kugou.service.VipService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("vipService")
public class VipServiceImpl implements VipService {

    @Resource
    VipMapper vipMapper;

    public VipMapper getVipMapper() {
        return vipMapper;
    }

    public void setVipMapper(VipMapper vipMapper) {
        this.vipMapper = vipMapper;
    }

    @Override
    public Vip selectPersonIsVipByid(Integer id) {
        return vipMapper.selectPersonIsVipByid(id);
    }

    @Override
    public int deleteVipByid(Integer id) {
        return vipMapper.deleteVipByid(id);
    }

    @Override
    public int updateVipEndtime(String Time, Integer id) {
        return vipMapper.updateVipEndtime(Time,id);
    }

    @Override
    public int insertVip(Vip vip) {
        return vipMapper.insertVip(vip);
    }
}
